/*
 * FilePath     : \src\hooks\useEmployee.ts
 * Author       : 苏军志
 * Date         : 2023-11-08 15:13
 * LastEditors  : 苏军志
 * LastEditTime : 2024-01-16 15:14
 * Description  : 人员相关方法hooks
 * CodeIterationRecord:
 */

export function useEmployee() {
  return {
    /**
     * @description: 获取员工照片
     * @param employeeID 员工编号
     * @return 员工照片地址
     */
    getEmployeePhoto(employeeID: string) {
      return "/static/images/employeePhoto.jpg";
      // let photoUrl = "http://www.honliv.com.cn/lkoa/HRM/rsda/photo";
      // if (common.storage("isInnerServer")) {
      //   photoUrl = "http://192.168.10.7/lkoa/hrm/rsda/photo";
      // }
      // return `${photoUrl}/${employeeID}.jpg`;
    }
  };
}
